# coding=utf-8
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
LOG_PATH = os.path.join(BASE_DIR, 'logs')
try:
    if not os.path.exists(LOG_PATH):
       os.mkdir(LOG_PATH)
except:
    pass

TMP_ROOT = os.path.join(BASE_DIR, 'tmp')
try:
    if not os.path.exists(TMP_ROOT):
        os.mkdir(TMP_ROOT)
except:
    pass

UPLOAD_ROOT = os.path.join(BASE_DIR, 'upload')
try:
    if not os.path.exists(UPLOAD_ROOT):
        os.mkdir(UPLOAD_ROOT)
except:
    pass